﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfScoreGoodsPublic.aspx.cs"
    Inherits="msBsc.WebUi.wfScoreGoodsPublic" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server">
    <title>商品发布</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/Dealer.css" />
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js,themes/Style1/jsDealer.js"
        type="text/javascript"></script>
    <!--head fix rgn-->
    <style type="text/css">
         
        
#good_spec{  font-size:12px;}
#good_spec thead{ text-align:center;}
#good_spec td{padding:2px 4px; }
#good_spec td n{color:Red; font-weight:bold;}
#good_spec tr:hover{opacity:0.8; filter:Alpha(opacity=80);}
#good_spec input {height: 20px; line-height: 20px; width: 80px; padding-left: 5px; }
    </style>
    <script type="text/javascript">
        var editor;
        var strGoodsDesc = '';
        function SetEditHtml(_sHtml) {
            strGoodsDesc = _sHtml;  
        };
        $(window).load(function () {

            $.ploadFile("kindeditor", function (script, textStatus) {
                editor = K.create('#Gdcontent', {
                    allowFileManager: true,
                    designMode: true,
                    resizeType: 1,
                    allowPreviewEmoticons: true,
                    allowImageUpload: false,
                    loadStyleMode: false,
                    afterCreate: function () {
                        this.loadPlugin('autoheight');
                       
                    }
                });
                editor.sync("Gdcontent");

 editor.html(strGoodsDesc);

                K('#J_selectImage').click(function () {
                    editor.loadPlugin('filemanager', function () {
                        editor.plugin.filemanagerDialog({
                            viewType: 'VIEW',
                            dirName: 'image',
                            clickFn: function (url, title) {
                                selImg(url);
                                //                                editor.hideDialog();
                            }
                        });
                    });
                });
            });


            $("#dplLEVEL_ONE_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplLEVEL_ONE_ID_change");
                _jsParam.AddCell("ONE_ID", $(this).val());
                ajaxComm(_jsParam);
            });
            $("#dplLEVEL_TWO_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplLEVEL_TWO_ID_change");
                _jsParam.AddCell("TWO_ID", $(this).val());
                ajaxComm(_jsParam);
            });

            $("#dplCT_LEVEL_ONE_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplCT_LEVEL_ONE_ID_change");
                _jsParam.AddCell("ONE_ID", $(this).val());
                ajaxComm(_jsParam);
            });
            $("#dplCT_LEVEL_TWO_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplCT_LEVEL_TWO_ID_change");
                _jsParam.AddCell("TWO_ID", $(this).val());
                ajaxComm(_jsParam);
            });
            $("#dplFROM_PROVINCE_ID").change(function () {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("ACTION", "dplFROM_PROVINCE_ID_change");
                _jsParam.AddCell("PROVINCE_ID", $(this).val());
                ajaxComm(_jsParam);
            });

            $.ploadFile("layer", function (script, textStatus) {
                //                layer.load('加载中'); 
            }); 
        });




        $(function () {
            $("#detail_list .self-list a").live("click", addDetailModel);
            $("#good_spec .self-list1 a").live("click", addSpecModel);
            $("#detail_list .good-detail-hand").live("mouseover", detailDeleteShow).live("mouseout", detailDeleteHide);
            $("#good_spec table tr").live("mouseover", specDeleteShow).live("mouseout", specDeleteHide);
            $("#detail_list .edit-label").live("click", editDetailName);
            $("#detail_list .title-input").live("blur", showDetailSpan);
            $("#detail_list .title-input1").live("blur", showDetailSpan);
            $("#detail_list .detail-remove").live("click", deleteHandDetail);
            $("#good_spec .spec-remove").live("click", deleteHandSpec);

            $("#listhotlabelshow li").live("click", function () { if ($(this).hasClass("tb-selected")) { $(this).removeClass("tb-selected") } else { $(this).addClass("tb-selected"); } });


            $("#img_selected .img-sigle").live("mouseover", function () { $(this).find(".operate").show(); }).live("mouseout", function () { $(this).find(".operate").hide(); });
            //左移
            $("#img_selected .move-left").live("click", moveLeft);
            $("#img_selected .move-right").live("click", moveRigth);
            $("#img_selected .delete-img").live("click", removeImgUrl);
//            $(".move-left").bind("click", moveLeft);
//            //右移
//            $(".move-right").bind("click", moveRigth);
//            //删除
//            $(".delete-img").bind("click", removeImgUrl);


//            $(".img-sigle").hover(
//			function () {
//			    $(this).find(".operate").show();
//			},
//			function () {
//			    $(this).find(".operate").hide();
//			});
        });


        /**删除图片链接*/
        function removeImgUrl() {
            var $this = $(this).parents(".img-sigle").remove(); 
        }

        /**右移图片*/
        function moveRigth() {
            var $this = $(this).parent().parent();var $next=$this.next();
            if ($next.length > 0) {$this.insertAfter($next); } 
        }
        /**左移图片*/
        function moveLeft() {
            var $this = $(this).parents(".img-sigle");
            if ($this.prev().length > 0) { $this.after($this.prev()); } 

        }

        function selImg(url) {
            $("#img_selected").append('<div class="img-sigle"><img alt="" src="' + url + '" for="' + url + '"><div class="operate"><span class="move-left"></span><span class="move-right"></span><span class="delete-img"></span></div></div>');

//            //左移
//            _addnode.find(".move-left").bind("click", moveLeft);
//            //右移
//            _addnode.find(".move-right").bind("click", moveRigth);
//            //删除
//            _addnode.find(".delete-img").bind("click", removeImgUrl);


//            _addnode.hover(
//			function () {
//			    $(this).find(".operate").show();
//			},
//			function () {
//			    $(this).find(".operate").hide();
//			});
//			$("#img_selected").append(_addnode);
             
        }

        function deleteHandSpec() {
            var $hand = $(this).parent().parent();
            $hand.remove();
            return false;
        }
        function deleteHandDetail() {
            var $hand = $(this).parent(".good-detail-hand");
            $hand.remove();
            return false;
        }

        function showDetailSpan() {
            var $detailSpan = $(this).prev()
		, val = jQuery.trim($(this).val());
            if (val.length == 0) {
                $detailSpan.text("输入属性名称");
            } else {
                $detailSpan.text("");
                $detailSpan.text(val);
            }
            $detailSpan.css("visibility", "visible");
            $(this).css("visibility", "hidden");
        }

        function editDetailName() {
            var text = jQuery.trim($(this).text());
            var $detailInput = $(this).next();
            if (text == "输入属性名称") {
                $detailInput.val("");
            } else {
                $detailInput.val(text);
            }
            $(this).css("visibility", "hidden");
            $detailInput.css("visibility", "visible");
            $detailInput.focus();
        }

        function specDeleteShow() {
            $(this).find(".spec-remove").show();
        }
        function specDeleteHide() {
            $(this).find(".spec-remove").hide();
        }
        function detailDeleteShow() {
            $(this).find(".detail-remove").show();
        }
        function detailDeleteHide() {
            $(this).find(".detail-remove").hide();
        }
        function addDetailModel() {
            var str = "";
            str += '<div class="good-detail-hand " data-id="" iscustom="False"> ';
            str += '<div class="detail-title"><label class="dlable  edit-label " for="title_input">输入属性名称</label> ';
            str += '<input for="ATTRIBUTE_NME" type="text" class="sInt1 title-input" value="" style="visibility: hidden;"> </div> ';
            str += '<input for="ATTRIBUTE_VALUE" class="sInt1 detail-input need" value="" type="text">';
            str += '<a style="display: none;" class="detail-remove" href="javascript:void(0);"></a></div>';
             
            var $str = $(str);
            $('#detail_list .self-list').before($str);
            return false;
        };
          
        function addSpecModel() {
            var str = "";
            str += "<tr data-id=\"\">";
            str += "<td>";
            str += "<input class=\"need\" for=\"PUB_NORMS_NME1\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td>";
            str += "<input class=\"need\" for=\"PUB_NORMS_NME2\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td>";
            str += "<input class=\"need\" for=\"GOODS_OLD_PRICE\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td>";
            str += "<input class=\"need\" for=\"GOODS_STRIKE_PRICE\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td>";
            str += "<input class=\"need\" for=\"GOODS_STRIKE_SCORE\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td>";
            str += "<input class=\"need\" for=\"GOODS_QTY\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td>";
            str += "<input class=\"need\" for=\"PRICE_DESC\" value=\"\" type=\"text\">";
            str += "</td>";
            str += "<td style=\"border: 0;width:200px;\">";
            str += "<a style=\"display: none;\" class=\"spec-remove\" href=\"javascript:void(0);\"></a>";
            str += "</td>";
            str += "</tr>";
            var $str = $(str);
            var $tr = $("#good_spec  tr").eq(-1);
            $tr.after($str);
            return false;
        };           
    </script>
    <style type="text/css">
        .sInt1:FOCUS { border: 1px solid #7EADD9; background: url("/themes/Style1/Image/input-bg.gif") repeat-x scroll 0 0 #FFFFFF; }
    </style>
</head>
<body>
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoDealerHtml("商品发布")%>
        <div id="content" class="content" style=" padding-top: 10px;">
            <div class="page lang-zh-S">
                <div id="mytaobao-panel" class="grid-c2">
                    <div class="col-main" id="J_Col_Main" style="padding-bottom: 0;">
                        <div class="main-wrap">
                            <div id="main-content">
                                <div id="selectLevel" style="border: 1px solid rgb(196, 213, 224); height: 550px;display:none;">
                                    <div style="height: 30px; border-bottom-color: rgb(196, 213, 224); border-bottom-width: 1px;
                                        border-bottom-style: solid; background-color: rgb(238, 245, 253);">
                                        <div style="width: auto; height: auto; line-height: 30px; padding-left: 10px; font-size: 15px;
                                            font-weight: bold; float: left;">
                                            <span>选择商品分类：</span></div>
                                    </div>
                                    <div id="dvGoodClassfiy" style="margin: 30px 20px 0px 20px;">
                                        <center>
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tr style="height: 40px;">
                                                    <td class="label" width="100px" style="font-size: 15px; font-weight: bold;" align="right">
                                                        好品济宁分类：
                                                    </td>
                                                    <td class="label" width="70px" align="right">
                                                        一级分类
                                                    </td>
                                                    <td align="right" width="100px">
                                                        <select name="dplLEVEL_ONE_ID" id="dplLEVEL_ONE_ID" style="width: 150px;"> 
                                                        </select>
                                                    </td>
                                                    <td class="label" width="100px" align="right">
                                                        二级分类
                                                    </td>
                                                    <td align="right" width="100px">
                                                        <select name="dplLEVEL_TWO_ID" id="dplLEVEL_TWO_ID" style="width: 150px;">
                                                        </select>
                                                    </td>
                                                    <td class="label" width="100px" align="right">
                                                        三级分类
                                                    </td>
                                                    <td align="right" width="100px">
                                                        <select name="dplLEVEL_THREE_ID" id="dplLEVEL_THREE_ID" style="width: 150px;">
                                                        </select>
                                                    </td>
                                                    <td align="right">
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="9" align="center" style="padding: 5px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="label" width="100px;" style="font-size: 15px; font-weight: bold;" align="right">
                                                        本商铺分类：
                                                    </td>
                                                    <td class="label" width="70px;" align="right">
                                                        一级分类
                                                    </td>
                                                    <td align="right" width="100px">
                                                        <select name="dplCT_LEVEL_ONE_ID" id="dplCT_LEVEL_ONE_ID" style="width: 150px;">
                                                        </select>
                                                    </td>
                                                    <td class="label" width="100px" align="right">
                                                        二级分类
                                                    </td>
                                                    <td align="right" width="100px">
                                                        <select name="dplCT_LEVEL_TWO_ID" id="dplCT_LEVEL_TWO_ID" style="width: 150px;">
                                                        </select>
                                                    </td>
                                                    <td class="label" width="100px" align="right">
                                                        三级分类
                                                    </td>
                                                    <td align="right" width="100px">
                                                        <select name="dplCT_LEVEL_THREE_ID" id="dplCT_LEVEL_THREE_ID" style="width: 150px;">
                                                        </select>
                                                    </td>
                                                    <td align="right">
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr style=" ">
                                                    <td colspan="9" align="center" style="padding: 5px; height:100px; font-size:16px;"> 
                                                    </td>
                                                </tr>
                                                <tr style=" " id="trxz">
                                                    <td colspan="9" align="center" style="padding: 5px;padding-top:10px; font-size:16px; ">
					 <a href="/Template/goodspublicxy.htm" target="_blank" style="color:Red;">《好品济宁商城商品发布须知》</a> 
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="9" align="center" style="padding: 5px;">
                                                        <a id="aSaveLebel" style="width: 230px;" class="aBtn_yellow aBtnBM" href="javascript:void(0);return false;"
                                                            onclick="setLevel();" target="_self">我已阅读以上规则，现在发布商品</a>
                                                    </td>
                                                </tr>
                                            </table>
                                        </center>
                                    </div>
                                </div>
                                <div style="border: 1px solid rgb(196, 213, 224); display: none;" id="div_goods_info">
                                    <div style="height: 60px; border-bottom-color: rgb(196, 213, 224); border-bottom-width: 1px;
                                        border-bottom-style: solid; background-color: rgb(238, 245, 253);">
                                        <div style="width: auto; height: auto; line-height: 30px; padding-left: 10px; font-size: 15px;
                                            font-weight: bold; float: left;">
                                            <span>商品分类</span><br />
                                            <span id="sys_cate_name"></span><span id="ct_cate_name"></span>
                                        </div>
                                        <a style="margin-top: 18px; margin-left: 50px; float: left;" onclick="javascript:ShowGoodClassfiy();return false;"
                                            class="aBtn_yellow aBtnBM">修改分类</a>
                                    </div>
                                    <div style="padding: 10px;">
                                        <h3>
                                            1.商品基本信息</h3>
                                        <div style="width: auto;">
                                            <div style="height: 21px;" class="cat_table">
                                                <label class="ilabel">
                                                    <b>*</b>商品标题：</label>
                                                <input style="width: 500px;" id="txtGOODS_NME" type="text" class="sInt1"  name="txtGOODS_NME"/>
                                                <span id="span1" class="spanTips">可以输入<b>60</b>个字符，<b>30</b>个汉字</span>
                                            </div>
                                            <div style="height: 21px;" class="cat_table">
                                                <label class="ilabel">
                                                    <b> </b>款式名称：</label>
                                                <input style="width: 500px;" id="txtSTYLE_NME" type="text" class="sInt1" value="" name="txtSTYLE_NME"/>
                                            </div>
                                            <div style="" class="cat_table">
                                                <label class="ilabel">
                                                    <b> </b>商品简要说明：</label>
                                                <textarea style="width: 500px; height:50px;" id="txtGOODS_DESC"  class="sInt1" value="" name="txtGOODS_DESC"></textarea>
                                                <span id="span1" class="spanTips">可以输入<b>250</b>个字符，<b>120</b>个汉字</span>
                                            </div>
                                            <div style="height: auto;" class="cat_table">
                                                <label style="padding-top: 11px;" class="ilabel">
                                                    <b>*</b>商品属性：</label>
                                                <div id="detail_list" class="list">
                                                </div>
                                            </div>
                                            <div style="height: auto;" class="cat_table">
                                                <label class="ilabel">
                                                    <b>*</b>商品规格：</label>
                                                <div  id="good_spec" class="list">
                                                    <!-- 展示商品规格列表 -->
                                                    <table style="margin-left: 20px;" border="0px" cellpadding="0" cellspacing="0">
                                                        <thead>
                                                            <th align="center">
                                                                <tr>
                                                                    <td id="tdNORMS_NME1">
                                                                        分类
                                                                    </td>
                                                                    <td id="tdNORMS_NME2">
                                                                        型号
                                                                    </td>
                                                                    <td>
                                                                        原价
                                                                    </td>
                                                                    <td>
                                                                        折扣价
                                                                    </td>
                                                                    <td>
                                                                        换购积分
                                                                    </td>
                                                                    <td>
                                                                        数量
                                                                    </td>
                                                                    <td>
                                                                        价格说明
                                                                    </td>
                                                                    <td style="border: 0; width: 200px;">
                                                                    </td>
                                                                </tr>
                                                                </th>
                                                        </thead>
                                                        <tbody id="good_spec_tbody">
                                                        </tbody>
                                                    </table>
                                    <div class="self-list1">
                                        <a href="javascript:void(0);" class="aBtn_yellow aBtnBM">添加商品规格</a>
                                    </div>
                                                    <!-- END -->
                                                </div>
                                            </div>
                                            <div style="height: auto;" class="cat_table">
                                                <label class="ilabel">
                                                    商品品牌：</label>
                                                <div class="list" style=" padding-left:20px;">
                                                        <select name="dplBRAND_ID" id="dplBRAND_ID"  class="comSel"> 
                                                        </select>
                                                </div>
                                            </div>
                                            <div style="height: auto;" class="cat_table">
                                                <label class="ilabel">
                                                    选购热点：</label>
                                                <div class="list" style=" padding-left:20px;"> 
                                                    <dl class="tb-prop tm-clear">
                                                        <dd>
                                                            <ul class="tm-clear J_TSaleProp" id="listhotlabelshow">
                                                            </ul>
                                                        </dd>
                                                    </dl>
                                                </div>
                                            </div>
                                            <div style="height: auto;" class="cat_table">
                                                <label class="ilabel">
                                                    商品图片：</label>
                                              
                                                <div class="list">
                                    <div class="self-list">
                                        <a href="javascript:void(0);return false;" class="aBtn_yellow aBtnBM" id="J_selectImage">选择图片</a></div>
                                                </div>
                                                <div class="list" style="background-color: #ffffff;">
                                                    <div id="img_selected" style="margin: 10px;"> 
                                                    </div>
                                                </div>
                                            </div>
                                            <div style="height: auto;" class="cat_table">
                                                <label class="ilabel">
                                                    <b>*</b>商品描述：</label> 
                                                <div class="list"  style="background-color:#ffffff; ">
                                                    <textarea name="Gdcontent" id="Gdcontent" style="width:883px; height: 600px; visibility: hidden;"></textarea>
                                            </div>
                                                 
                                            </div>
                                        </div>




<style>

                                        
.ui-fm-select-group{
}
.ui-fm-select{border:1px solid #ccc;line-height:20px;color:#666;padding:7px;font-size:13px;width:81px;*width:71px;vertical-align:middle;}
.ui-fm-select-border{*background:#fff;*border:1px solid #ccc;*padding:5px;*width:103px;}
.ui-fm-select-container{*border:0;*position:relative;*width:103px;*height:26px;*overflow:hidden;*background:#fff;}

.ui-fm-select-l{border:1px solid #ccc;line-height:33px;color:#666;margin:-1px;padding:7px 5px 8px;font-size:13px;width:243px;*width:233px;}
.ui-fm-select-l-border{*background:#fff;*border:1px solid #ccc;*padding:5px;*width:233px;}
.ui-fm-select-l-container{*border:0;*position:relative;*width:233px;*height:26px;*overflow:hidden;*background:#fff;}
</style> 



                                     <%--   <h3>
                                            2.活动信息</h3>
                                        <div style="height: 21px;" class="cat_table">
                                            <label class="ilabel">
                                                <b></b>商品送积分：</label><input id="txtSCORE_NUM" class="sInt1" name="txtSCORE_NUM"
                                                    value="0" type="text"><span style="  font-weight:bold;"> 当前商家可用积分：</span><span id="spnSCORE_QTY" style="color:Red; font-weight:bold;"></span>
                                                    </div>--%>
                                        <h3>
                                            2.其他信息</h3>
                                  <%--      <div style="height: 21px;display:none;" class="cat_table">
                                            <label class="ilabel">
                                                发货城市：</label>
                                                <div>
                                                        <select name="dplFROM_PROVINCE_ID" id="dplFROM_PROVINCE_ID" class="comSel" > 
                                                        </select>
                                                        <select name="dplFROM_CITY_ID" id="dplFROM_CITY_ID" class="comSel" > 
                                                        </select>
                                                </div>
                                                </div>--%>
                                        <div style="height: 21px;" class="cat_table">
                                            <label class="ilabel">
                                                发货地址选择：</label>
                                                
                                        <select name="dplSHIP_ADDRESS_ID" id="dplSHIP_ADDRESS_ID"   class="comSel"   style="width: 270px; font-size:18px; ">
                                        </select>
                                                </div>
                                        <div style="height: 21px;" class="cat_table">
                                            <label class="ilabel">
                                                运费模版选择：</label>
                                                
                                        <select name="dplLOGISTICS_TEMPLATE_NME" id="dplLOGISTICS_TEMPLATE_NME" class="comSel" style="width: 270px; font-size:18px;">
                                        </select>
                                                </div>
                                     <%--   <div style="height: 70px;" class="cat_table">
                                            <label class="ilabel">
                                                出售时间：</label>
                                            <div style="margin-left: 170px;" class="sel-status">
                                                <div>
                                                    <input name="goods.comGoodsStatus" value="1" id="ckbGOODS_STATUS_SID1" type="radio"><span>立即出售</span></div>
                                                <div>
                                                    <input name="goods.comGoodsStatus" value="0" id="ckbGOODS_STATUS_SID0" type="radio"><span>放入仓库</span></div>
                                            </div>
                                        </div>--%>
                                    </div>
                                    <div style=" clear:both; margin-top:15px; padding-left:400px; padding-top:15px;">
                                        <a id="cp-good" class="aBtn_yellow aBtnFloat" href="javascript:void(0);return false;"  onclick="javascript:doSaveGoodsPub('0');return false;">
                                            放入仓库</a>
                                        <a id="A1" class="aBtn_yellow aBtnFloat"  href="javascript:void(0);return false;" onclick="javascript:doSaveGoodsPub('1');return false;">
                                            立即发布</a>
                                    </div>
                                </div>
                                <div style="height: 15px; clear: both;">
                                </div>
                            </div>
                        </div>
                    </div>
    <input value="" type="hidden" id="txtId"  name="txtId"/>
                    <!-- end col-main -->
                    <div class="col-sub" id="J_Col_Sub">
                        <%=new msBsc.WebUi.Code.QtHtmlGet().GetDealerMenu()%>
                    </div>
                    <div style="clear:both;"></div>
                </div>
                <!-- end mytaobao-panel -->
            </div>
        </div>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%>
    </div>


                                <!-- template -->
                                <textarea id="goods_hotlabel_temp" style="display:none;">  
                                    {{# for(var i = 0, len = d.rows.length; i < len; i++){ }}
                                    <li data-value="{{ d.rows[i].LABEL_TEMP_ID }}" data-nme="{{ d.rows[i].LABEL_NME }}" class="{{# if(d.rows[i].IS_CHECKED=='True'){ }} tb-selected {{# }else{ }}   {{#}}}"><a href="javascript:void(0);"><span>{{ d.rows[i].LABEL_NME }}</span></a><i>已选中</i></li>
                                    {{# } }}                             
                                </textarea>
                                <textarea id="goods_attr_temp" style="display:none;">  
                                    {{# for(var i = 0, len = d.rows.length; i < len; i++){ }}
                                    <div class="{{# if(d.rows[i].IS_CUSTOM=='True'){ }}good-detail-hand{{# }else{ }} sys-good-detail-hand {{#}}}" data-id="{{ d.rows[i].GOODS_ATTRIBUTE_ID }}" iscustom="{{ d.rows[i].IS_CUSTOM }}">
                                        <div class="detail-title">
                                            <label class="dlable {{# if(d.rows[i].IS_CUSTOM=='False'){ }} sys-edit-label {{# }else{ }} edit-label {{#}}}"
                                                for="title_input">
                                                {{ d.rows[i].ATTRIBUTE_NME }}</label>
                                            <input for="ATTRIBUTE_NME" type="text" class="sInt1 title-input" value="{{ d.rows[i].ATTRIBUTE_NME }}" style="visibility: hidden;">
                                        </div>
                                        <input for="ATTRIBUTE_VALUE" class="sInt1 detail-input need" value="{{ d.rows[i].ATTRIBUTE_VALUE }}" type="text">
                                        <a style="display: none;" class="detail-remove" href="javascript:void(0);"></a>
                                    </div>
                                    {{# } }}
                                    <div class="self-list">
                                        <a href="javascript:void(0);" class="aBtn_yellow aBtnBM">添加商品属性</a></div>                                
                                </textarea>
                                <textarea id="good_spec_temp" style="display:none;">
                                        {{# if(d.rows.length == 0){ }}
                                        <tr data-id="">
                                            <td>
                                                <input class="need" for="PUB_NORMS_NME1" value="" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="PUB_NORMS_NME2" value="" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_OLD_PRICE" value="" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_STRIKE_PRICE" value="" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_STRIKE_SCORE" value="" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_QTY" value="" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="PRICE_DESC" value="" type="text">
                                            </td>
                                            <td style="border: 0;width:200px;">
                                            <a style="display: none;" class="spec-remove" href="javascript:void(0);"></a>
                                            </td>
                                        </tr>
                                        {{#} else {}} {{# for(var i = 0, len = d.rows.length; i < len; i++){ }}
                                        <tr data-id="{{ d.rows[i].PUB_NORMS_ID }}">
                                            <td>
                                                <input class="need" for="PUB_NORMS_NME1" value="{{ d.rows[i].PUB_NORMS_NME1 }}" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="PUB_NORMS_NME2" value="{{ d.rows[i].PUB_NORMS_NME2 }}" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_OLD_PRICE" value="{{ d.rows[i].GOODS_OLD_PRICE }}" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_STRIKE_PRICE" value="{{ d.rows[i].GOODS_STRIKE_PRICE }}" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_STRIKE_SCORE" value="{{ d.rows[i].GOODS_STRIKE_SCORE }}" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="GOODS_QTY" value="{{ d.rows[i].GOODS_QTY }}" type="text">
                                            </td>
                                            <td>
                                                <input class="need" for="PRICE_DESC" value="{{ d.rows[i].PRICE_DESC }}" type="text">
                                            </td>
                                            <td style="border: 0;width:200px;">
                                            <a style="display: none;" class="spec-remove" href="javascript:void(0);"></a>
                                            </td>
                                        </tr>
                                        {{# }}} {{# }}}
                                </textarea> 
                                <!--end template -->
    <!-- foot script -->
</body>
</html>
